package vip.liux.backend.infrastructure.urls;

import java.util.Map;

public class ApplicationUrlMap {
    private final Map<String, ApplicationUrlInfo> applications;

    public ApplicationUrlMap(Map<String, ApplicationUrlInfo> applications) {
        this.applications = applications;
    }

    public ApplicationUrlInfo get(String rootUrl) {
        return applications.getOrDefault(rootUrl, new ApplicationUrlInfo());
    }
}
